<?php

namespace App\Models;

use Illuminate\Support\Collection;

class GoodsBase extends Model
{
    protected $table = 'yf_goods_base';
    protected $primaryKey = 'goods_id';
    public $timestamps = false;
    protected $guarded = ['goods_id'];

    public static function getGoodsListByGoodsId(array $ids) : Collection
    {
        return self::whereIn('goods_id', $ids)->get();
    }
}
